from django.conf.urls.defaults import *
from fblaproj.panel import views
urlpatterns = patterns('',
	(r'^$', views.Redirect),
	(r'^search/$', views.Search),
	(r'^events/$', views.Events),
	(r'^sponsorships/$', views.SponsorShip),
	(r'^(?P<user_name>[^/]+)/messages/$', views.MessageView),
	(r'^(?P<user_name>[^/]+)/messages/recieved/$', views.MessageView),
	(r'^(?P<user_name>[^/]+)/messages/sent/$', views.MessageViewSent),
	(r'^(?P<user_name>[^/]+)/messages/send/$', views.MessageSend),
	(r'^(?P<user_name>[^/]+)/messages/view/(?P<message_id>\d+)/$', views.MessageViewFull),
	(r'^(?P<user_name>[^/]+)/messages/view/delete/$', views.DeleteBulk),
	(r'^(?P<user_name>[^/]+)/messages/view/delete/(?P<message_id>\d+)/$', views.MessageDelete),
	(r'^(?P<user_name>[^/]+)/gallery/$', views.Gallery),
	(r'^(?P<user_name>[^/]+)/gallery/(?P<gallery_slug>[^/]+)/$', views.GalleryDisp),
	(r'^(?P<user_name>[^/]+)/gallery/new/gallery/$', views.NewGallery),
	(r'^(?P<user_name>[^/]+)/gallery/(?P<gallery_id>\d+)/edit/$', views.EditGallery),
	(r'^(?P<user_name>[^/]+)/gallery/(?P<gallery_id>\d+)/image/(?P<image_id>\d+)/edit/$', views.EditImage),
	(r'^(?P<user_name>[^/]+)/gallery/(?P<gallery_id>\d+)/add/image/$', views.NewImage),
	(r'^(?P<user_name>[^/]+)/gallery/(?P<gallery_slug>[^/]+)/(?P<img_slug>[^/]+)/$', views.GalleryImageDisp),
	(r'^(?P<user_name>[^/]+)/socialgraph/follow/$', views.Follow),
	(r'^(?P<user_name>[^/]+)/socialgraph/$', views.ViewFollowing),
	(r'^(?P<user_name>[^/]+)/socialgraph/followers/$', views.ViewFollowers),
	(r'^(?P<user_name>[^/]+)/userp/$', views.PublicProfile),
	(r'^(?P<user_name>[^/]+)/profile/$', views.Profile),
	(r'^(?P<user_name>[^/]+)/$', views.Panel_index),
)
